package com.example.pro5_webflux_r2dbc_book.service;

import com.example.pro5_webflux_r2dbc_book.model.Book;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @program: reactivePro
 * @description:
 * @author: zy
 * @create: 2025-04-28 11:13
 */
public interface BookService {

    public Mono<Book> addBook(Book book) ;

    public Flux<Book> getAllBooks() ;

    public Mono<Book> getBookById(Long id);

    public Mono<Book> updateBook(Long id, Book book) ;

    public Mono<Void> deleteBook(Long id) ;
}
